<?php
namespace app\mobile\controller;
use think\Controller;
use think\Session;
use think\Request;
class Action extends Controller
{
    public function _initialize()
    {      
       
       $this->_getWebsite(); 
       $this->_getType();
    }
    private function _getType(){        
        $typeRes = model("Type")->getType();
        $this->assign([
            'typeRes' => $typeRes,
        ]);
    }
    private function _getWebsite(){
        $configs = db('website')->find(1);
        $title = input("title")?input("title"):'';
        $request = Request::instance();
        $domain = $request->domain();
        $this->assign([
            'configs' => $configs,
            'title' => $title,
            "domain" => $domain,
        ]);
    }
}
